﻿@model GameSchool.Models.Video

@{
    ViewBag.Title = "Skrá myndband";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="well">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Skrá myndband</legend>

		<div class="editor-label">
            @Html.Label("Borð")
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.LevelID, ViewData["listOfLevels"] as SelectList, "Veldu...")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.Label("Youtube slóð")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VideoUrl)
            @Html.ValidationMessageFor(model => model.VideoUrl)
        </div>

        <div class="editor-field">
            @Html.Hidden("GameID", ViewData["currGame"])
            @Html.ValidationMessageFor(model => model.GameID)
        </div>
		
        <p>
			<div class="form-actions">
				<input type="submit" class="btn btn-primary" value="Vista">
			</div>
        </p>
    </fieldset>
}
</div>
